<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>页面未找到</title>

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../css/reset.css" />
    <link rel="stylesheet" href="../css/element-plus.css" />
    <link rel="stylesheet" href="../css/index.css" />
    <link rel="stylesheet" href="../css/iconfont/iconfont.css" />

    <script src="../js/vue3.js"></script>
    <script src="../js/element-plus.js"></script>
    <script src="../js/element-plus-icon.js"></script>
    <script src="../js/locale/zh-cn.js"></script>

    <style>
      #app {
        margin-top: 100px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <el-result title="404" sub-title="页面未找到">
        <template #extra>
          <el-button type="primary" @click="toHome">返回</el-button>
        </template>
      </el-result>
    </div>

    <script>
      /** 创建app */
      const app = Vue.createApp({
        data() {
          return {}
        },
        methods: {
          toHome() {
            location.href = '/index.html'
          },
        },
      })

      /** ElementPlus */
      app.use(ElementPlus, { locale: ElementPlusLocaleZhCn })
      app.mount('#app')
    </script>
  </body>
</html>
